
import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author DIT-0958372
 */
public class NewClass {

    public static void main(String[] args) {
        String nameStr = "zhixiong/zhixiong2/zhixiong3";
        String[] strList = nameStr.split("/");
        ArrayList nameList = new ArrayList();
        for (int i = 0; i < strList.length; i++) {
            nameList.add(strList[i]);
            System.out.println(nameList.get(i));
        }
    }
}
